package site.codeyin.javautils.utils.mapstruct.spring;

import site.codeyin.javautils.JavaUtilsApplication;
import site.codeyin.javautils.utils.mapstruct.pojo.MapStructData;
import site.codeyin.javautils.utils.SpringContextUtils;

import java.util.Date;

/**
 * @author <a href="https://github.com/liangcheng2221">yinjie</a>
 * @date 2024-09-21 11:42
 */
public class Main {
    public static void main(String[] args) {
        JavaUtilsApplication.main(new String[]{});
        MapStructConvertor structConvertor = SpringContextUtils.getBean(MapStructConvertor.class);
        MapStructData mapStructData = new MapStructData();
        mapStructData.setString("yinjie");
        mapStructData.setDate(new Date());
        mapStructData.setDoubleData(1.0);
        mapStructData.setIgnore("hulue");
        mapStructData.setLongDate(new Date());

        System.out.println(structConvertor.toMapStructVO(mapStructData));


    }
}
